#!/usr/bin/env python
# coding=utf-8

# File Name: getURL.py
# Author: Bill Zhang
# Mail: zchcandid@gmail.com 
# Created Time: Fri 29 Nov 2013 05:13:03 PM CST
from libGetURL import runUpdate
import random
"""k=2 Mouser
"""
i=1
print(".........start push url to MQ..........")
while(i):
    k=random.randint(2,3)
    if(runUpdate(k)==666):
        print("%s have been updated")
        i=0
